#!/bin/bash

commands=(
  "sudo docker stop r_koa_web"
  "sudo docker rm r_koa_web"
  "sudo docker rmi r_node20_koa_web"
  "sudo docker build -t r_node20_koa_web ."
  "sudo docker run -d --restart unless-stopped --name r_koa_web -p 8234:8000 --network lanmei r_node20_koa_web"
)

for command in "${commands[@]}"; do
  # read -p "准备执行命令：$command，按回车确认操作："
  echo "执行命令：$command"
  eval $command
done